package com.gisuni.sddc.platformManager.model;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Table;


/**
 * ModuleRLayerId entity. @author MyEclipse Persistence Tools
 */
@Table(value = "SDDCGISPLATFORM.MODULE_R_LAYER")
public class ModuleRLayer implements java.io.Serializable {

	// Fields
	@Column(value = "ID")
	@Name
	private String id;
	
	@Column(value = "MODULE_ID")

	private String moduleId;
	
	@Column(value = "LAYER_ID")

	private String layerId;
	
	@Column(value = "FIELDS" )
	private String fields;
	
    @Column(value="LAYERPARAM")
    private String layerParam;
	// Constructors

	/** default constructor */
	public ModuleRLayer() {
		
	}

	@Override
	public String toString() {
		return "ModuleRLayer [id=" + id + ", moduleId=" + moduleId + ", layerId=" + layerId + ", fields=" + fields
				+ ", layerParam=" + layerParam + "]";
	}

	public String getLayerParam() {
		return layerParam;
	}

	public void setLayerParam(String layerParam) {
		this.layerParam = layerParam;
	}

	public ModuleRLayer(String id, String moduleId, String layerId, String fields, String layerParam) {
		super();
		this.id = id;
		this.moduleId = moduleId;
		this.layerId = layerId;
		this.fields = fields;
		this.layerParam = layerParam;
	}

	/** minimal constructor */
	public ModuleRLayer(String id, String moduleId) {
		this.id = id;
		this.moduleId = moduleId;
	}

	/** full constructor */
	public ModuleRLayer(String id, String moduleId, String layerId,
			String fields) {
		this.id = id;
		this.moduleId = moduleId;
		this.layerId = layerId;
		this.fields = fields;
	}

	// Property accessors

	
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	
	public String getModuleId() {
		return this.moduleId;
	}

	public void setModuleId(String moduleId) {
		this.moduleId = moduleId;
	}

	public String getLayerId() {
		return this.layerId;
	}

	public void setLayerId(String layerId) {
		this.layerId = layerId;
	}

	
	public String getFields() {
		return this.fields;
	}

	public void setFields(String fields) {
		this.fields = fields;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof ModuleRLayer))
			return false;
		ModuleRLayer castOther = (ModuleRLayer) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getModuleId() == castOther.getModuleId()) || (this
						.getModuleId() != null
						&& castOther.getModuleId() != null && this
						.getModuleId().equals(castOther.getModuleId())))
				&& ((this.getLayerId() == castOther.getLayerId()) || (this
						.getLayerId() != null
						&& castOther.getLayerId() != null && this.getLayerId()
						.equals(castOther.getLayerId())))
				&& ((this.getFields() == castOther.getFields()) || (this
						.getFields() != null
						&& castOther.getFields() != null && this.getFields()
						.equals(castOther.getFields())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37 * result
				+ (getModuleId() == null ? 0 : this.getModuleId().hashCode());
		result = 37 * result
				+ (getLayerId() == null ? 0 : this.getLayerId().hashCode());
		result = 37 * result
				+ (getFields() == null ? 0 : this.getFields().hashCode());
		return result;
	}


}